package br.com.yakistorm.service.impl;

import br.com.yakistorm.service.EfetuarLoginService;
import br.com.yakistorm.service.application.UsuarioAS;
import br.com.yakistorm.service.webservice.to.RequestEfetuarLoginWSTO;
import br.com.yakistorm.service.webservice.to.ResponseEfetuarLoginWSTO;

public class EfetuarLoginServiceImpl implements EfetuarLoginService{

	@Override
	public ResponseEfetuarLoginWSTO login(RequestEfetuarLoginWSTO request) {
		UsuarioAS as = new UsuarioAS();
		ResponseEfetuarLoginWSTO result = new ResponseEfetuarLoginWSTO();
		result.setLoginOk(as.logar(request.getUsuario()));
		return result;
	}
	
}
